package com.egghiro.framework.j2se.util;

import java.util.Collection;
import java.util.LinkedList;

public class SLinkedList<E> extends LinkedList<E> {
    
    public SLinkedList() {
        super();
    }
    
    public SLinkedList(Collection<? extends E> c){
        super(c);
    }

    @Override
    public SIterator<E> iterator() {
        return new SIterator<E>(super.iterator());
    }

    public void push(E e) {
        addFirst(e);
    }

    public E pop() {
        return removeFirst();
    }
}
